# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render_to_response
from django.http import HttpResponseRedirect


# def page_not_found(request, **kwargs):
#     return render_to_response('index.html')
#     #return render_to_response('404.html')
    
    
def redirect(request, **kwargs):
    return HttpResponseRedirect('http://47.110.37.246:%s' % kwargs.get('var'))

  
# 500 django2.2
def page_error(request):
    return render_to_response('error500.html')


# 404 django2.2
def page_not_found(request, exception):
    return render_to_response('index.html')